package com.simple.common.entity.dto.pay.vm;

import com.simple.common.entity.po.sys.RefundTrade;
import com.simple.common.entity.po.sys.RefundTradeInventory;
import lombok.Data;

/**
 * @author yasud
 * @date 2020年10月10日 14:24
 * @description
 */
@Data
public class RefundTradeRspDto extends PayRspDto {


    /**
     * 退款订单
     */
    private RefundTrade refundTrade;

    /**
     * 每条详细
     */
    private RefundTradeInventory inventory;


    /**
     *
     * @param refundTradeDto
     * @return
     */
    public RefundTradeRspDto fromRefundTradeDto(RefundTradeDto refundTradeDto) {
        setTrade(refundTradeDto.getTrade());
        setRefundTrade(refundTradeDto.getRefundTrade());
        setInventory(refundTradeDto.getInventory());
        return this;
    }
}
